﻿using System.Collections.Generic;
using System.Collections.Specialized;

namespace Central.Linq.Mvc.Demo {

	/// <summary>
	/// Информационный класс по сущности
	/// </summary>
	public class PersonInfoManager : InfoManager {

		protected override List<FieldInformation> CreateFieldsList() {
			List<FieldInformation> fieldList = new List<FieldInformation>();
			fieldList.Add(new FieldInformation("Age", "Возраст", "Age", "ASC", new string[] { "All", "Admin" }));
			fieldList.Add(new FieldInformation("MemberDate", "Дата", "MemberDate", "ASC", new string[] { "Admin" }));
			fieldList.Add(new FieldInformation("Description", "Описание", "Description", "ASC"));
			fieldList.Add(new FieldInformation("Gender", "Пол", "Gender", "ASC", new string[] { "All" }));
			fieldList.Add(new FieldInformation("IsMember", "Есть партбилет?", "IsMember", "ASC", new string[] { "Admin" }));
			fieldList.Add(new FieldInformation("Name", "Наименование", "Name", "ASC"));
			fieldList.Add(new FieldInformation("Weight", "Вес", "Weight", "ASC", new string[] { "All", "Admin" }));

			StringDictionary countryEnumInfo = new StringDictionary();
			countryEnumInfo.Add("Enum", "SampleData.Country, SampleData");
			fieldList.Add(new FieldInformation("Country", "Страна", "Country", "ASC", 3, countryEnumInfo));

			return fieldList;
		}
	}
}